package com.sgb.kjwl.model.entity.manage;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.List;

/**
 * 知识产权发布实体界面数据模型
 */
public class UpdataIPDetailEntity implements Serializable {

//    "industryName": "",
//            "industryNameNo": "",
//            "no": "1325651138447544320",
//            "displayAuthority": "1",
//            "uploadPictures": "https://shigongbang.oss-cn-hangzhou.aliyuncs.com/member_center/610000/2020113141207104591041.png",
//            "companyName": "新疆金正建投工程集团有限公司",
//            "typesOfPropertyRights": "商标",
//            "type": "化学原料",
//            "companyNo": "201912231250229",
//            "createTime": 1604894835486,
//            "companyAddress": "新疆乌鲁木齐红山路",
//            "name": "111",
//            "createUser": "20191223691998",
//            "id": "463",
//            "state": "",1是独家 2 是非独家
//            "applicationDate": "111"
    //         "companyId" :"999",企业id

    private String name; // 产权、专利、版权名称
    private String fieldClassId; //领域分类配置id
    private String fieldClassifyName; //领域分类名称
    private String displayAuthority; // 展示权限 1：所有 2：会员 3：自己
    private String displayAuthorityName; // 展示权限 1：所有 2：会员 3：自己
    private String combinationNo; // 组合类型编号
    private String applicationDate = ""; //申请日期
    private boolean isLongDate; //申请日期
    private String state;// 商标状态
    private String stateName;// 商标状态
    private String type; //产权、专利、版权类型
    private String copyrightType; //产权、专利、版权类型编号
    private String typesOfPropertyRights; //产权类型(产权、专利、版权 传入汉字)
    private String uploadPictures; //图片上传
    private String siteType; //网站类型  0-个人 1-企业 2-团队
    private String companyNo;
    private String concat; //联系人
    private String honorNo; //行业名
    private String industryName; //行业分类名称
    private String industryNameNo; //行业分类No
    private String mapAddress; //主营地址
    private String mapAddressDetail; //主营地址详细
    private String id;
    private String siteNo;
    private List<AddItemEntity> customFieldList;
    private String no;//知识产权业务编号no

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public List<AddItemEntity> getCustomFieldList() {
        return customFieldList;
    }

    public void setCustomFieldList(List<AddItemEntity> customFieldList) {
        this.customFieldList = customFieldList;
    }

    public String getDisplayAuthorityName() {
        if ("1".equals(displayAuthority)){
             displayAuthorityName = "所有人可见";
        }else if ("2".equals(displayAuthority)){
             displayAuthorityName = "仅会员可见";
        }else if ("3".equals(displayAuthority)){
            displayAuthorityName = "仅自己可见";
        }
        return displayAuthorityName;
    }

    public void setDisplayAuthorityName(String displayAuthorityName) {
        this.displayAuthorityName = displayAuthorityName;
    }

    public String getStateName() {
        if (TextUtils.isEmpty(stateName)){
            if ("1".equals(state)){
                stateName = "授权未下证";
            }else if ("2".equals(state)){
                stateName = "授权已下证";
            }else{
                stateName = "";
            }
        }
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFieldClassId() {
        return fieldClassId;
    }

    public void setFieldClassId(String fieldClassId) {
        this.fieldClassId = fieldClassId;
    }

    public String getFieldClassifyName() {
        return fieldClassifyName;
    }

    public void setFieldClassifyName(String fieldClassifyName) {
        this.fieldClassifyName = fieldClassifyName;
    }

    public String getDisplayAuthority() {
        return displayAuthority;
    }

    public void setDisplayAuthority(String displayAuthority) {
        this.displayAuthority = displayAuthority;
    }

    public String getCombinationNo() {
        return combinationNo;
    }

    public void setCombinationNo(String combinationNo) {
        this.combinationNo = combinationNo;
    }

    public String getApplicationDate() {
        if (!TextUtils.isEmpty(applicationDate) && applicationDate.contains("长期")){
            return "";
        }
        return applicationDate;
    }

    public void setApplicationDate(String applicationDate) {
        this.applicationDate = applicationDate;
    }

    public boolean isLongDate() {
        if (!TextUtils.isEmpty(applicationDate) && applicationDate.contains("长期")){
            isLongDate = true;
        }else{
            isLongDate = false;
        }
        return isLongDate;
    }

    public void setLongDate(boolean longDate) {
        isLongDate = longDate;
    }

    public String getConcat() {
        return concat;
    }

    public void setConcat(String concat) {
        this.concat = concat;
    }

    public String getHonorNo() {
        return honorNo;
    }

    public void setHonorNo(String honorNo) {
        this.honorNo = honorNo;
    }

    public String getIndustryName() {
        return industryName;
    }

    public void setIndustryName(String industryName) {
        this.industryName = industryName;
    }

    public String getIndustryNameNo() {
        return industryNameNo;
    }

    public void setIndustryNameNo(String industryNameNo) {
        this.industryNameNo = industryNameNo;
    }

    public String getMapAddress() {
        return mapAddress;
    }

    public void setMapAddress(String mapAddress) {
        this.mapAddress = mapAddress;
    }

    public String getMapAddressDetail() {
        return mapAddressDetail;
    }

    public void setMapAddressDetail(String mapAddressDetail) {
        this.mapAddressDetail = mapAddressDetail;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypesOfPropertyRights() {
        return typesOfPropertyRights;
    }

    public void setTypesOfPropertyRights(String typesOfPropertyRights) {
        this.typesOfPropertyRights = typesOfPropertyRights;
    }

    public String getUploadPictures() {
        return uploadPictures;
    }

    public void setUploadPictures(String uploadPictures) {
        this.uploadPictures = uploadPictures;
    }

    public String getSiteType() {
        return siteType;
    }

    public void setSiteType(String siteType) {
        this.siteType = siteType;
    }

    public String getCopyrightType() {
        return copyrightType;
    }

    public void setCopyrightType(String copyrightType) {
        this.copyrightType = copyrightType;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSiteNo() {
        return siteNo;
    }

    public void setSiteNo(String siteNo) {
        this.siteNo = siteNo;
    }

//    public static class AddItemEntity{
//        private String fieldKey;
//        private int sortNum;
//        private String id;
//        private String fieldValue;
//
//        public String getFieldKey() {
//            return fieldKey;
//        }
//
//        public void setFieldKey(String fieldKey) {
//            this.fieldKey = fieldKey;
//        }
//
//        public int getSortNum() {
//            return sortNum;
//        }
//
//        public void setSortNum(int sortNum) {
//            this.sortNum = sortNum;
//        }
//
//        public String getId() {
//            return id;
//        }
//
//        public void setId(String id) {
//            this.id = id;
//        }
//
//        public String getFieldValue() {
//            return fieldValue;
//        }
//
//        public void setFieldValue(String fieldValue) {
//            this.fieldValue = fieldValue;
//        }
//    }
}
